package com.github.jiangxch.rpc.rpc.def;

import com.github.jiangxch.rpc.rpc.Exporter;
import com.github.jiangxch.rpc.rpc.Invoker;
import com.github.jiangxch.rpc.rpc.Protocol;
import com.github.jiangxch.rpc.transport.exchanger.ExchangeServer;

import java.net.InetSocketAddress;

/**
 * @author: jiangxch
 * @date: 2021/3/1 上午2:30
 */
public class DefaultProtocol implements Protocol {
    private ExchangeServer exchangeServer;
    
    @Override
    public <T> Exporter<T> export(Invoker<T> invoker) {
        Class<T> clazz = invoker.getInterface();
        
        return null;
    }
    
    @Override
    public <T> Invoker<T> refer(Class<T> clazz, InetSocketAddress address) {
        return null;
    }
}
